package com.hhd.flow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author tangzy
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("h_flow_attachment")
public class FlowAttachment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 附件名称
     */
    @TableField("file_name")
    private String fileName;

    /**
     * 附件大小
     */
    @TableField("file_size")
    private Integer fileSize;

    /**
     * 附件路径
     */
    @TableField("file_path")
    private String filePath;

    /**
     * 附件大小(可读)
     */
    @TableField("file_size_read_able")
    private String fileSizeReadAble;

    /**
     * 创建日期
     */
    @TableField("create_time")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新日期
     */
    @TableField("update_time")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * url
     */
    @TableField("url")
    private String url;

    /**
     * 附件类型
     */
    @TableField("attachment_type")
    private String attachmentType;

    /**
     * 扩展类型
     */
    @TableField("ext")
    private String ext;


}
